package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.RoomBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IRoomMapper extends BaseMapper<RoomBean> {


    public Page<RoomBean> findByItem(
            Page page, @Param("address") String address,
            @Param("state") String roomState,
            @Param("num") String info,
            @Param("roomType") String roomType);


    public RoomBean findById(Integer id);


    public List<RoomBean> findByGender(String gender);
}
